﻿function getChildClass(id) {
    var url = "/home/ajax/product.ashx";
    var data = new Object();
    data.doing = "1";
    data.parentId = id;
    jQuery.ajax({
        url: url,
        data: data,
        type: "get",
        dataType: "json",
        success: function (data) {
            var html = "";
            for (var i in data) {
                //拼接html
                html += "<li><a href='/home/productChild.aspx?id=" + data[i].ClassId + "' target='_blank'>";
                html += "<span class='classname'>" + data[i].ClassName + "</span>系列";
                html += "</a></li>";
            }
            jQuery("#test").html(html);
        }
    });
}